#!/usr/bin/env python3

import sys
import datetime
import os
import subprocess
import re  # 正则
import os.path

# package_root_dir=sys.argv[1]
# uploader_author=sys.argv[2]

package_root_dir="/media/nio/Mdisk1T/workspace/projs/sud_localization_release/packages/localization-localization-211214.2140-aarch64-release-1130-c40244f5bfd40a88832e31e9e34fe0d29da26ebf"
ver_name=os.path.basename(package_root_dir) #需要文件夹名字就是版本号
uploader_author="hongsong.yu"

upload_cmd="./release-system-amd64.cli upload"+ \
  " -p " + package_root_dir + \
  " -t " + "localization" + \
  " -n " + "localization" + \
  " -v " + ver_name + \
  " -u " + uploader_author + \
  " --publish " + "true"

print (upload_cmd)